package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品列表对象 commodity
 * 
 * @author yuanML2018
 * @date 2025-01-04
 */
public class Commodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 介绍 */
    @Excel(name = "介绍")
    private String description;

    /** 照片 */
    @Excel(name = "照片")
    private String photoUrl;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 运费 */
    @Excel(name = "运费")
    private String courierServiceFee;

    /** 标签 */
    @Excel(name = "标签")
    private String tag;

    /** 销量 */
    @Excel(name = "销量")
    private Long saleNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setCourierServiceFee(String courierServiceFee) 
    {
        this.courierServiceFee = courierServiceFee;
    }

    public String getCourierServiceFee() 
    {
        return courierServiceFee;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("photoUrl", getPhotoUrl())
            .append("price", getPrice())
            .append("originalPrice", getOriginalPrice())
            .append("courierServiceFee", getCourierServiceFee())
            .append("tag", getTag())
            .append("saleNum", getSaleNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
